import request from '@/utils/request'
/**公共 */

//区域
export function getArea(data) {
    return request({
        url: '/zone/getallzonesrec.ashx',
        method: 'post',
    })
}

//获取任务详情 
export function getDutyById(data) {
    return request({
        url: '/duty/getdutybyid.ashx',
        method: 'post',
        data,
    })
}
//图片 
export function getImg(data) {
    return request({
        url: '/img/getimg.ashx',
        method: 'post',
        data,
    })
}

//操作记录 
export function getLog(data) {
    return request({
        url: '/log/getlogbydutyid.ashx',
        method: 'post',
        data,
    })
}

//评论 
export function getReplay(data) {
    return request({
        url: '/reply/getreplybydutyid.ashx',
        method: 'post',
        data,
    })
}

// 用户列表 
export function getUser(data) {
    return request({
        url: '/user/getalluser.ashx',
        method: 'post',
        data,
    })
}

// 导出excle带图片 
export function exportExclePiature(data) {
    return request({
        url: '/duty/expDutyByCond.ashx',
        method: 'post',
        data,
        responseType: 'blob',
        timeout: 60000
    })
}

//导出excle带图片 计划任务
export function exportExclePiaturePlanTask(data) {
    return request({
        url: '/actitem/expActIttemsByCond.ashx',
        method: 'post',
        data,
        responseType: 'blob',
        timeout: 60000
    })
}

